﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SCGYList.aspx.cs" Inherits="ServicesSheet_SCGYList" %>
<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
    <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster" DataMember="Services_SCGY" CacheDataSet="True">
        </InfoLight:WebDataSource>
        
        <InfoLight:WebNavigator ID="WebNavigator1" runat="server" BindingObject="wgvMaster"
            Width="100%" StatusStrip="WebStatusStrip1" 
        OnCommand="WebNavigator1_Command" CssClass="NavigatorBar" CtlHeight="25">
            <NavControls>
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                    Size="48" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/print_C.gif" MouseOverImageUrl="../image/uipics/print2_C.gif"
                    Size="48" />
                 <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Export3_C.gif" ImageUrl="../Image/UIPics/Export_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2_C.gif" Size="48" />
            </NavControls>
            <NavStates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </NavStates>
        </InfoLight:WebNavigator>
   <table cellpadding="0" cellspacing="5" class="TbSearch">
            <tr>
             
                <td style="width: 109px">
                    <asp:Label ID="Appid" runat="server" Text="私车公用申请单号:"></asp:Label></td>
                <td style="width: 78px">
                    <asp:TextBox ID="TextBox1" runat="server" Width="72px" Height="16px"></asp:TextBox></td>
                <td style="width: 32px">
                    <asp:Label ID="Label2" runat="server" Text="日期:"></asp:Label></td>
                <td style=" width: 128px;"  >
                    <uc1:DSelYearMonth ID="DSelYearMonth1" runat="server" />
       
                </td>
                <td style="width: 34px" >
                    <asp:Label ID="Label3" runat="server" Text="财务登记:" Width="56px"></asp:Label></td>
                <td style="height: 32px; width: 74px;">
                    <asp:DropDownList ID="SelFinance" runat="server">
                        <asp:ListItem Value="9" Selected="True">请选择</asp:ListItem>
                        <asp:ListItem Value="0">未登记</asp:ListItem>
                        <asp:ListItem Value="1">已登记</asp:ListItem>
                    </asp:DropDownList></td>
                <td style="height: 32px; text-align:right" >
        
        <span class="roundbtn">
                    <asp:LinkButton ID="Query" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="Query_Click"
                        ></asp:LinkButton>
                </span>
                &nbsp;&nbsp;&nbsp;&nbsp;
        </td>
            </tr>
        </table>
    </div>
        <InfoLight:webgridview id="wgvMaster" runat="server"
            cellpadding="5" datasourceid="Master" forecolor="#333333" width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif" 
        ApplyIconUrl="../Image/UIPics/Apply.gif" 
        CancelIconUrl="../Image/UIPics/Cancel.gif" 
        MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" 
        MouseOverAddIconUrl="../Image/UIPics/Add2.gif" 
        MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" 
        MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif" 
        MouseOverOKIconUrl="../Image/UIPics/OK2.gif" 
        MouseOverQueryIconUrl="../Image/UIPics/Query2.gif" 
        OKIconUrl="../Image/UIPics/OK.gif" QueryIconUrl="../Image/UIPics/Query.gif" 
        HeaderStyleWrap="False" BackColor="White" BorderColor="White" 
        BorderStyle="Groove" BorderWidth="2px" CreateInnerNavigator="False" 
    PageSize="15">
            <PagerSettings Mode="NumericFirstLast" />
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <Columns>
                <asp:TemplateField ShowHeader="False" HeaderText="查看">
    <headerstyle wrap="False" />
<ItemTemplate>
<IMG style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" onclick="javascript:window.open('ViewSCGY.aspx?Ad=0&VT=1&Id=<%#Eval("Id") %>&Ed=<%#Eval("Locked") %>','open','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=yes,width=800px,height=600px');" alt="查看详细" src="../Image/UIPics/Select.gif" />&nbsp;
<asp:ImageButton id="ImageButton4" runat="server" Text="Delete" ImageUrl="~/Image/UIPics/Delete.gif" CommandName="Delete" CausesValidation="False" __designer:wfdid="w36" OnClientClick="javascript:return confirm('确定要删除吗?');" Visible='<%# IsVisable(Eval("Locked")) %>'></asp:ImageButton>
</ItemTemplate>
</asp:TemplateField>
                <asp:TemplateField HeaderText="打印">
                    <itemtemplate>
<CENTER><asp:CheckBox id="CheckBox1" runat="server" __designer:wfdid="w6" Enabled='<%# SheetCheck(Eval("Locked"),Eval("Finance")) %>'></asp:CheckBox></CENTER>
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Id" HeaderText="用车编码" SortExpression="Id" />
                <asp:BoundField DataField="EmpName" HeaderText="员工名称" SortExpression="EmpName" />
                <asp:BoundField DataField="DepartmentName" HeaderText="部门名称" SortExpression="DepartmentName" />
                <asp:BoundField DataField="UDate" HeaderText="日期" SortExpression="UDate" DataFormatString="{0:d}" HtmlEncode="False" />
                <asp:BoundField DataField="PeopleCount" HeaderText="乘车总人数目" SortExpression="PeopleCount" />
                <asp:BoundField DataField="Cause" HeaderText="用车事由" SortExpression="Cause" />
                <asp:BoundField DataField="UseKil" HeaderText="使用公里数" SortExpression="UseKil" />
                <asp:BoundField DataField="SubsidyMoney" HeaderText="补贴金额" SortExpression="SubsidyMoney" />
                <asp:TemplateField HeaderText="财务登记" SortExpression="Finance">
                    <itemstyle horizontalalign="Center" />
                    <itemtemplate>
                     <asp:CheckBox id="CheckBox4" runat="server" Enabled="False" Checked='<%# Eval("Finance") %>'></asp:CheckBox>
                  </itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="FlowFlagName" HeaderText="工作流标志" SortExpression="FlowFlagName" />
            </Columns>
</InfoLight:webgridview>
        <asp:Label ID="Label1" runat="server" Font-Size="Medium" ForeColor="Red" Text="注意:1.)私车申请表单必须在5日之内将路码输入,否则系统将锁定,无法操作! 2.)当私车申请表被车辆调度确认前和财务登记后,不能够打印!"></asp:Label>
</asp:Content>

